package com.ly.user.service;

import com.ly.user.dao.UserMapper;
import com.ly.user.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author LT
 * @version 1.0.0
 * @ClassName UserService.java
 * @Description TODO
 * @createTime 2020年04月27日 10:30:00
 */
@Service
@Transactional
public class UserService {

    @Autowired
    private UserMapper userMapper;

    /**
     * 查询全部用户
     * @return
     */
    public List<User> findAll(){
        return userMapper.selectAll();
    }

}
